/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Assignment.DTO;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author dieptn
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "users"
})
@XmlRootElement(name = "Users")
public class UserListDTO {

    @XmlElement(required = true, name = "User")
    protected List<UserDTO> users;

    public List<UserDTO> getUserList() {
        if (users == null) {
            users = new ArrayList<UserDTO>();
        }
        return this.users;
    }
}
